package app.service;

import app.entity.AdminEntity;
import app.mapper.adminMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import javax.sql.DataSource;
import java.util.List;

@Service
public class adminService {
    @Autowired
    private adminMapper adminMapper;

    @Autowired
    private DataSource dataSource;

    public void update(){
        adminMapper.update("张毅sssssssssss");
    }
    public void select(){
        List<AdminEntity> list=adminMapper.selectAll();
        for(AdminEntity adminEntity:list){
            System.out.println(adminEntity.getAdmin());
        }
    }
}
